#include <stdio.h>
void move(char pose1, char pose2)
{
	printf("%c->%c ",pose1,pose2);

}
void Hanoi(int n, char pose1, char pose2, char pose3)
{
	if (n == 1)
	{
		move(pose1,pose3);
		
	}
	else
	{
		Hanoi(n - 1, pose1, pose3, pose2);
		move(pose1, pose3);
		Hanoi(n - 1, pose2, pose1, pose3);
	}
}
int main()
{
	
	Hanoi(3, 'A', 'B', 'C');
	return 0;
}